'''
Created on Dec 7, 2015

@author: JimmyMo
'''
import unittest
import logging

from configuration import ConfigInfo

class TestConfiguration(unittest.TestCase):
    def testParse(self):
        cfgInfo = ConfigInfo('/home/JimmyMo/git/resourcecare/resourcecare/res/mapping.xml')
        cfgInfo.parse()
        locatorConfigs = cfgInfo.locatorConfigs
        self.assertEqual(3, len(locatorConfigs))
        print ("\n".join([str(lc) for lc in locatorConfigs]))

if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()